package org.vergil.core.designpattern.mediator;

/**
 * Created by vergil on 17-3-24.
 */
public class Button extends Component {


    @Override
    public void update(String arg) {
        System.out.println("列表框增加一项：" + arg);
        setArg(arg);
    }

    public void select() {
        System.out.println("按钮选中项:" + arg);
    }
}
